import Vue from 'vue'
import Vuex from 'vuex'
import home from './home/index.js'
import search from './search/index.js'

Vue.use(Vuex)

export default new Vuex.Store({
  // namespaced: true,
  state: {},
  // namespaced: true,
  mutations: {
    // mutations是修改state的地方
  },
  actions: {
    // 不能直接修改state,但是可以控制mutations
  },
  modules: {
    home,
    search
  },
  getters: {}
})
